Getting Filter from a module

I'm trying to find a way to get a filter that is applied to the current module within my dxl script. Is there a way to obtain the filter that is on the current module?
SystemAdmin - Wed Feb 18 13:27:11 EST 2009

Re: Getting Filter from a module
SystemAdmin - Wed Feb 18 14:11:20 EST 2009

Get the current filter:

Filter f = current

Re: Getting Filter from a module
SystemAdmin - Wed Feb 18 14:43:09 EST 2009

Thanks, I thought I had tried this method already, but apparently I hadn't. Thanks again.

Re: Getting Filter from a module
Doug.Zawacki - Wed Feb 18 14:44:40 EST 2009

SystemAdmin - Wed Feb 18 14:11:20 EST 2009
Get the current filter:

Filter f = current

And to print the filter you can then do the following:

Filter f = current

print stringOf(current,f)

Re: Getting Filter from a module
llandale - Mon Feb 23 17:41:48 EST 2009

Doug.Zawacki - Wed Feb 18 14:44:40 EST 2009
And to print the filter you can then do the following:

Filter f = current

print stringOf(current,f)

Be careful, that DXL will return the current Filter that's defined whether or not filtering is currently turned on or not. Create a filter, run your code, turn filtering off, run the code. You'll get the same results. Perhaps the 'fitering()' perm will add clarity there.

  • Louie